-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CAAM RSA inconsistent fails #3661
Fix CAAM RSA inconsistent fails #3661
Conversation
2fee144
to
31dee43
Compare
2ef6044
to
d326279
Compare
Descriptive macro added for key format in the last commit |
@jenswi-linaro Does it look good to you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
@@ -73,6 +73,10 @@ struct caam_rsa_keypair { | |||
struct caambuf qp; /* Private [qp = 1/q mod p] */ | |||
}; | |||
|
|||
#define RSA_PRIVATE_KEY_FORMAT_1 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see why we didn't have these before, since the name of the key format happens to be a number. It's still an improvement though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It helps with readability at least.
Tag applied!
Fix the RSA private key format number 3. Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Fix the RSA encoded message length computation when verifying the message. This fixes inconsistent xtest 4006.20 and 4006.32 fails. Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Add descriptive defines for RSA private key formats for a better readability. Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
d326279
to
25a89e2
Compare
Thanks! |
Hello,
A small patch set to fix RSA CAAM issue #3657
Thanks!
Clement